package com.java.dao;

import java.util.List;
import java.util.Map;

import com.java.entity.Diary;

public interface DiaryDao {

	public List<Diary> findAll(Map<String, Object> map);

	public long getTotal(Map<String, Object> map);

	public Diary findById(Integer id);

	public List<Diary> findtypeNameBydiaryId(Integer diaryTypeId);

	public List<Diary> findByTypeId(String diaryTypeId);

	public List<Diary> findByTypeId(Map<String, Object> map);

	public long getTypeTotal(Map<String, Object> map);

	public void add(Diary diary);

	public void delete(Integer diaryId);

	public void edit(Diary diary);

}
